home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 24 / CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso / CUCD / Programming / BlitzList / BlitzListFiles / blitblocknew / CPU-Block / cpu_block_example.bb2 < prev    next >
Unknown  |  1980-01-03  |  2.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% TrID Flexible Line Interpretation bitmap default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 3b 00 3b 20 43 50 55 | 20 42 4c 4f 43 4b 20 76 |.;.; CPU| BLOCK v|
|00000010| 31 2e 30 32 20 20 28 63 | 29 20 4d 41 4e 46 52 45 |1.02 (c|) MANFRE|
|00000020| 44 20 4c 49 4e 5a 4e 45 | 52 20 31 39 39 38 20 20 |D LINZNE|R 1998 |
|00000030| 20 61 6b 61 20 50 69 6e | 6b 2f 61 42 59 53 53 00 | aka Pin|k/aBYSS.|
|00000040| 3b 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |; ======|========|
|00000050| 3d 00 3b 00 3b 00 3b 20 | 41 20 66 61 73 74 21 20 |=.;.;.; |A fast! |
|00000060| 42 4c 4f 43 4b 20 72 65 | 70 6c 61 63 65 6d 65 6e |BLOCK re|placemen|
|00000070| 74 20 74 68 61 74 20 75 | 73 65 73 20 6f 6e 6c 79 |t that u|ses only|
|00000080| 20 74 68 65 20 43 50 55 | 00 3b 00 3b 20 55 53 41 | the CPU|.;.; USA|
|00000090| 47 45 3a 20 63 70 75 5f | 62 6c 6f 63 6b 7b 78 2c |GE: cpu_|block{x,|
|000000a0| 79 2c 2a 42 49 54 4d 41 | 50 2c 2a 53 48 41 50 45 |y,*BITMA|P,*SHAPE|
|000000b0| 7d 00 3b 00 3b 20 54 68 | 65 20 66 6f 6c 6c 6f 77 |}.;.; Th|e follow|
|000000c0| 69 6e 67 20 65 78 61 6d | 70 6c 65 20 6f 6e 6c 79 |ing exam|ple only|
|000000d0| 20 63 6f 75 6e 74 73 20 | 66 6f 72 20 74 68 65 20 | counts |for the |
|000000e0| 36 38 30 33 30 2f 35 30 | 6d 68 7a 2e 00 3b 20 54 |68030/50|mhz..; T|
|000000f0| 68 65 20 63 6f 64 65 20 | 69 74 73 65 6c 66 20 69 |he code |itself i|
|00000100| 73 20 63 6f 6d 70 61 74 | 69 62 6c 65 20 77 69 74 |s compat|ible wit|
|00000110| 68 20 74 68 65 20 36 38 | 30 30 30 2d 36 38 30 36 |h the 68|000-6806|
|00000120| 30 2e 00 3b 00 3b 20 2d | 20 77 6f 72 6b 73 20 6f |0..;.; -| works o|
|00000130| 6e 6c 79 20 77 69 74 68 | 20 31 36 20 70 69 78 65 |nly with| 16 pixe|
|00000140| 6c 20 77 69 64 65 20 73 | 68 61 70 65 73 00 3b 20 |l wide s|hapes.; |
|00000150| 2d 20 77 6f 72 6b 73 20 | 6f 6e 20 31 2d 38 20 70 |- works |on 1-8 p|
|00000160| 6c 61 6e 65 73 00 3b 20 | 2d 20 77 6f 72 6b 73 20 |lanes.; |- works |
|00000170| 6f 6e 20 61 72 62 69 74 | 61 72 79 20 73 69 7a 65 |on arbit|ary size|
|00000180| 64 20 62 69 74 70 6c 61 | 6e 65 73 00 3b 20 2d 20 |d bitpla|nes.; - |
|00000190| 77 6f 72 6b 73 20 77 69 | 74 68 20 73 68 61 70 65 |works wi|th shape|
|000001a0| 73 20 6f 66 20 61 6e 79 | 20 68 65 69 67 68 74 00 |s of any| height.|
|000001b0| 3b 00 3b 20 53 70 65 65 | 64 20 67 61 69 6e 20 66 |;.; Spee|d gain f|
|000001c0| 6f 72 20 74 68 65 20 36 | 38 30 33 30 2f 35 30 20 |or the 6|8030/50 |
|000001d0| 63 6f 6d 70 61 72 65 64 | 20 74 6f 20 42 4c 4f 43 |compared| to BLOC|
|000001e0| 4b 00 3b 00 3b 20 7c 20 | 20 78 20 7c 20 20 79 20 |K.;.; | | x | y |
|000001f0| 7c 20 20 70 6c 61 6e 65 | 73 7c 00 3b 20 7c 2d 2d || plane|s|.; |--|
|00000200| 2d 2d 7c 2d 2d 2d 2d 7c | 2d 2d 2d 2d 2d 2d 2d 2d |--|----||--------|
|00000210| 7c 00 3b 20 7c 20 31 36 | 20 78 20 31 36 20 78 20 ||.; | 16| x 16 x |
|00000220| 20 20 20 38 20 20 20 7c | 20 3d 20 2b 31 32 25 00 | 8 || = +12%.|
|00000230| 3b 20 7c 20 31 36 20 78 | 20 20 38 20 78 20 20 20 |; | 16 x| 8 x |
|00000240| 20 38 20 20 20 7c 20 3d | 20 2b 36 33 25 00 3b 20 | 8 | =| +63%.; |
|00000250| 7c 20 31 36 20 78 20 20 | 34 20 78 20 20 20 20 38 || 16 x |4 x 8|
|00000260| 20 20 20 7c 20 3d 20 2b | 39 33 25 00 3b 00 3b 00 | | = +|93%.;.;.|
|00000270| 3b 20 54 68 69 73 20 63 | 6f 64 65 20 63 61 6e 20 |; This c|ode can |
|00000280| 62 65 20 75 73 65 66 75 | 6c 6c 20 66 6f 72 20 67 |be usefu|ll for g|
|00000290| 61 6d 65 20 70 72 6f 67 | 72 61 6d 6d 65 72 73 20 |ame prog|rammers |
|000002a0| 77 68 6f 20 75 73 65 20 | 61 20 42 4c 49 54 54 45 |who use |a BLITTE|
|000002b0| 52 00 3b 20 69 6e 74 65 | 72 72 75 70 74 2e 20 59 |R.; inte|rrupt. Y|
|000002c0| 6f 75 20 63 61 6e 20 64 | 72 61 77 20 79 6f 75 72 |ou can d|raw your|
|000002d0| 20 6d 61 70 2d 74 79 70 | 65 20 73 63 72 65 65 6e | map-typ|e screen|
|000002e0| 20 6e 6f 77 20 77 69 74 | 68 20 74 68 65 20 43 50 | now wit|h the CP|
|000002f0| 55 00 3b 20 77 68 69 6c | 65 20 79 6f 75 20 62 6c |U.; whil|e you bl|
|00000300| 69 74 74 65 72 20 69 73 | 20 62 75 73 79 20 77 69 |itter is| busy wi|
|00000310| 74 68 20 6d 6f 72 65 20 | 73 6f 70 68 69 73 74 69 |th more |sophisti|
|00000320| 63 61 74 65 64 20 73 74 | 75 66 66 2e 00 3b 00 3b |cated st|uff..;.;|
|00000330| 00 3b 20 50 6c 65 61 73 | 65 20 63 6f 6e 74 61 63 |.; Pleas|e contac|
|00000340| 74 20 6d 65 20 69 66 20 | 79 6f 75 20 64 69 73 63 |t me if |you disc|
|00000350| 6f 76 65 72 20 61 6e 79 | 20 62 75 67 73 20 28 6f |over any| bugs (o|
|00000360| 72 20 69 66 20 79 6f 75 | 20 6a 75 73 74 20 6c 69 |r if you| just li|
|00000370| 6b 65 20 69 74 20 3d 29 | 00 3b 00 3b 20 45 6d 61 |ke it =)|.;.; Ema|
|00000380| 69 6c 3a 20 6d 61 6e 66 | 72 65 64 2e 6c 69 6e 7a |il: manf|red.linz|
|00000390| 6e 65 72 40 6d 75 6e 69 | 63 68 2e 6e 65 74 73 75 |ner@muni|ch.netsu|
|000003a0| 72 66 2e 64 65 00 3b 00 | 3b 20 4f 74 68 65 72 20 |rf.de.;.|; Other |
|000003b0| 62 62 32 20 69 20 64 69 | 64 3a 20 56 53 50 52 49 |bb2 i di|d: VSPRI|
|000003c0| 54 45 53 2c 52 4e 44 20 | 52 65 70 6c 61 63 65 6d |TES,RND |Replacem|
|000003d0| 65 6e 74 2c 53 49 4e 2f | 43 4f 53 20 72 65 70 6c |ent,SIN/|COS repl|
|000003e0| 61 63 65 6d 65 6e 74 2c | 52 4f 54 52 31 26 32 00 |acement,|ROTR1&2.|
|000003f0| 3b 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |; | |
|00000400| 20 20 20 42 4c 49 54 20 | 72 65 70 6c 61 63 65 6d | BLIT |replacem|
|00000410| 65 6e 74 2c 20 42 4c 4f | 43 4b 33 32 00 00 80 13 |ent, BLO|CK32....|
|00000420| 20 22 62 6c 69 74 7a 6c | 69 62 73 3a 62 62 32 6f | "blitzl|ibs:bb2o|
|00000430| 62 6a 74 79 70 65 73 2e | 62 62 32 22 00 80 13 20 |bjtypes.|bb2"... |
|00000440| 22 63 70 75 5f 62 6c 6f | 63 6b 2e 62 62 32 22 00 |"cpu_blo|ck.bb2".|
|00000450| 00 80 33 2e 73 68 61 70 | 65 20 20 2a 73 00 80 33 |..3.shap|e *s..3|
|00000460| 2e 62 69 74 6d 61 70 20 | 2a 62 00 00 80 34 00 00 |.bitmap |*b...4..|
|00000470| c7 82 20 30 2c 34 34 2c | 32 35 36 2c 24 31 33 30 |.. 0,44,|256,$130|
|00000480| 30 38 2c 38 2c 32 35 36 | 2c 30 00 d0 01 20 30 2c |08,8,256|,0... 0,|
|00000490| 33 32 30 2c 32 35 36 2c | 38 00 d0 89 20 30 2c 3f |320,256,|8... 0,?|
|000004a0| 70 69 63 00 ce 1a 20 30 | 2c 3f 70 61 6c 00 cd 08 |pic... 0|,?pal...|
|000004b0| 20 30 2c 30 2c 30 2c 31 | 36 2c 31 36 00 c7 84 20 | 0,0,0,1|6,16... |
|000004c0| 30 2c 30 00 c7 86 20 30 | 2c 30 00 c7 83 20 30 00 |0,0... 0|,0... 0.|
|000004d0| 00 b2 05 00 00 c7 02 20 | 30 00 00 dd 82 20 22 42 |....... |0.... "B|
|000004e0| 6c 69 74 74 65 72 20 31 | 36 70 69 78 65 6c 20 61 |litter 1|6pixel a|
|000004f0| 6c 69 67 6e 65 64 3a 22 | 00 dd 82 20 22 4f 62 6a |ligned:"|... "Obj|
|00000500| 65 63 74 73 20 31 32 36 | 20 2f 20 53 69 7a 65 20 |ects 126| / Size |
|00000510| 31 36 78 31 36 20 2f 20 | 38 20 70 6c 61 6e 65 73 |16x16 / |8 planes|
|00000520| 22 00 00 80 bb 20 20 20 | 20 20 20 20 20 20 20 20 |".... | |
|00000530| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 20 42 6c | | ; Bl|
|00000540| 69 74 20 61 20 31 36 78 | 31 36 78 38 70 6c 61 6e |it a 16x|16x8plan|
|00000550| 65 73 20 73 68 61 70 65 | 00 80 16 20 61 3d 30 20 |es shape|... a=0 |
|00000560| 80 18 20 31 32 35 20 20 | 20 20 20 20 20 20 20 20 |.. 125 | |
|00000570| 20 20 20 20 20 3b 00 cb | 08 20 30 2c 28 61 20 80 | ;..|. 0,(a .|
|00000580| 7c 20 34 29 26 32 35 35 | 2c 33 32 2b 61 20 20 20 || 4)&255|,32+a |
|00000590| 3b 00 80 17 20 20 20 20 | 20 20 20 20 20 20 20 20 |;... | |
|000005a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 3b 00 da | | ;..|
|000005b0| 01 2e 77 20 24 64 66 66 | 31 38 30 2c 24 66 66 66 |..w $dff|180,$fff|
|000005c0| 20 20 20 20 20 20 20 20 | 20 20 3b 00 80 37 20 20 | | ;..7 |
|000005d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005e0| 20 20 20 20 20 20 3b 00 | 80 bc 20 df 04 28 30 29 | ;.|.. ..(0)|
|000005f0| 3d 31 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |=1 | |
|00000600| 3b 00 b2 05 20 20 20 20 | 20 20 20 20 20 20 20 20 |;... | |
|00000610| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3b 00 | | ;.|
|00000620| 00 2a 73 3d 80 b8 20 cd | 0c 20 28 30 29 20 20 20 |.*s=.. .|. (0) |
|00000630| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000640| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000650| 20 20 20 20 20 20 20 20 | 3b 20 43 6f 70 79 20 53 | |; Copy S|
|00000660| 68 61 70 65 00 61 64 72 | 2e 6c 3d a6 08 28 28 32 |hape.adr|.l=..((2|
|00000670| 20 2a 20 2a 73 5c 5f 70 | 69 78 68 65 69 67 68 74 | * *s\_p|ixheight|
|00000680| 20 2a 20 2a 73 5c 5f 64 | 65 70 74 68 29 2c 30 29 | * *s\_d|epth),0)|
|00000690| 20 20 20 20 20 20 20 20 | 20 20 20 3b 20 66 72 6f | | ; fro|
|000006a0| 6d 20 43 68 69 70 6d 65 | 6d 00 61 3d fe db 28 2a |m Chipme|m.a=..(*|
|000006b0| 73 5c 5f 64 61 74 61 2c | 61 64 72 2c 28 32 20 2a |s\_data,|adr,(2 *|
|000006c0| 20 2a 73 5c 5f 70 69 78 | 68 65 69 67 68 74 20 2a | *s\_pix|height *|
|000006d0| 20 2a 73 5c 5f 64 65 70 | 74 68 29 29 20 20 20 20 | *s\_dep|th)) |
|000006e0| 3b 20 74 6f 20 46 41 53 | 54 4d 45 4d 00 2a 73 5c |; to FAS|TMEM.*s\|
|000006f0| 5f 64 61 74 61 3d 61 64 | 72 20 20 20 20 20 20 20 |_data=ad|r |
|00000700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000720| 20 20 20 20 20 20 20 20 | 20 3b 00 00 80 bb 00 80 | | ;......|
|00000730| bc 20 df 04 28 30 29 3d | 30 00 00 c7 04 20 30 2c |. ..(0)=|0.... 0,|
|00000740| 30 00 dd 82 20 22 43 50 | 55 2d 42 4c 49 54 20 28 |0... "CP|U-BLIT (|
|00000750| 31 36 70 69 78 65 6c 20 | 61 6c 69 67 6e 65 64 29 |16pixel |aligned)|
|00000760| 3a 22 00 dd 82 20 22 4f | 62 6a 65 63 74 73 20 31 |:"... "O|bjects 1|
|00000770| 33 38 20 2f 20 53 69 7a | 65 20 31 36 78 31 36 20 |38 / Siz|e 16x16 |
|00000780| 2f 20 38 20 70 6c 61 6e | 65 73 22 00 00 80 bb 20 |/ 8 plan|es".... |
|00000790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000007a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3b 00 | | ;.|
|000007b0| 2a 62 3d 80 b8 20 d0 01 | 20 28 80 d1 20 d0 01 29 |*b=.. ..| (.. ..)|
|000007c0| 20 20 20 20 20 20 20 20 | 20 3b 00 80 16 20 61 3d | | ;... a=|
|000007d0| 30 20 80 18 20 31 33 38 | 20 20 20 20 20 20 20 20 |0 .. 138| |
|000007e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3b | | ;|
|000007f0| 00 2a 73 3d 80 b8 20 20 | cd 0c 20 28 30 29 20 20 |.*s=.. |.. (0) |
|00000800| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000810| 20 3b 00 63 70 75 5f 62 | 6c 6f 63 6b 7b 28 61 20 | ;.cpu_b|lock{(a |
|00000820| 80 7c 20 34 29 26 32 35 | 35 2c 33 32 2b 61 2c 2a |.| 4)&25|5,32+a,*|
|00000830| 62 2c 2a 73 7d 20 3b 00 | 80 17 20 20 20 20 20 20 |b,*s} ;.|.. |
|00000840| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000850| 20 20 20 20 20 20 20 20 | 20 20 20 3b 20 42 6c 69 | | ; Bli|
|00000860| 74 20 61 20 31 36 78 31 | 36 78 38 70 6c 61 6e 65 |t a 16x1|6x8plane|
|00000870| 73 20 73 68 61 70 65 00 | da 01 2e 77 20 24 64 66 |s shape.|...w $df|
|00000880| 66 31 38 30 2c 24 66 66 | 66 20 20 20 20 20 20 20 |f180,$ff|f |
|00000890| 20 20 20 20 20 20 20 20 | 20 20 20 3b 20 77 69 74 | | ; wit|
|000008a0| 68 20 74 68 65 20 43 50 | 55 00 80 37 20 20 20 20 |h the CP|U..7 |
|000008b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000008c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 00 80 bc | | ;...|
|000008d0| 20 df 04 28 30 29 3d 31 | 20 20 20 20 20 20 20 20 | ..(0)=1| |
|000008e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 3b 00 | | ;.|
|000008f0| 00 00 80 02 3a 80 02 3a | 80 02 00 00 70 69 63 00 |....:..:|....pic.|
|00000900| 80 2a 20 22 62 6c 6f 63 | 6b 2e 69 66 66 22 00 70 |.* "bloc|k.iff".p|
|00000910| 61 6c 00 80 2a 20 22 62 | 6c 6f 63 6b 2e 70 61 6c |al..* "b|lock.pal|
|00000920| 22 00 00 00 | |"... | |
+--------+-------------------------+-------------------------+--------+--------+